#ifndef __ACCOUNT_MANAGEMENT__
#define __ACCOUNT_MANAGEMENT__
#include "func.h"

#define SALTLENGTH 20
typedef int socket_t;
//用户注册
int user_register(socket_t fd_client, MYSQL *mysql);
//用户登录
int user_login(socket_t fd_client, MYSQL *mysql, userInfo_t *user_info);
//用户注销
int user_cancel(socket_t fd_client, MYSQL *mysql);
//随机生成盐值
int generate_salt(char *salt);
#endif
